<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link rel="stylesheet" type="text/css"
	href="gmcc_ext/ext/resources/css/ext-all.css" />
<script type="text/javascript"
	src="gmcc_ext/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="gmcc_ext/ext/ext-all.js"></script>
<link rel="stylesheet" type="text/css"
	href="gmcc_ext/ext-portal/portal.css" />
<html>
	<head>
		<script>
	function a2() {
		alert('some thing2');
	}
	Ext.onReady( function() {
		//Ext.Msg.prompt('Name', 'Please enter your name:', function(btn, text) {
			//if (btn == 'ok') {
			//alert(text);
			// process text value and close...
			//}
			//});

			//Ext.get("btnAlert2").addListener("click", a2);
			Ext.QuickTips.init();
			new Ext.ToolTip(
					{
						target : 'btnAlert2',
						title : 'Mouse Track',
						width : 200,
						html : 'This tip will follow the mouse while it is over the element',
						trackMouse : true,
						dismissDelay : 15000
					});
		});
</script>
		<input id="btnAlert2" type="button" value="alert框2" />


		<title>1.html</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<script>
	function a1() {
		alert('some thing1');
	}
</script>
		<input id="btnAlert1" type="button" onclick=
	a1();;;;;;;;
value="alert框1" />

		<script>
	function a() {
		alert('some thing');
	}
	window.onload = function() {
		document.getElementById("btnAlert").onclick = a;
	}
</script>
		<input id="btnAlert" type="button" value="alert框" />

	</head>
	<body>
		<script>
	Ext.onReady( function() {
	init();
	});
</script>
		<script type="text/javascript" src="gmcc_ext/javascripts/localtest/select.js"></script>

		<script>
	Employee = function(name) {
		this.name = name;
		this.addEvents( {
			"fired" : true,
			"quit" : true
		});
	}
	Ext.extend(Employee, Ext.util.Observable, {});
	function myHandler1(empolyee) {
		alert("handler1");
	}
	function myHandler2(empolyee) {
		alert("handler2");
	}
	var emp = new Employee('tom');
	emp.on('quit', myHandler1);
	emp.on('quit', myHandler2);
	//emp.fireEvent('quit', this);
</script>
	</body>
</html>
